<head>
	<link rel="stylesheet" href="assets/css/editor.css">
</head>
<?php 
require_once('admin/m/editor/j_editor.php');
?>
<h2>Editor CMS</h2>
<div id="editor-tabs">
 <h4 id='control-e' class='ctrl-edit'>SITE-CONTROL</h4> 
 <h4 id='edit-e' class='ctrl-edit'>EDITOR</h4>
</div>
<div id="editor-edit">			
		<div id="editor-head">
		<h3>Editor's Page</h3>
		select type:
				<select id="post-type" name="post-type">
					<option value="article">article</option>
					<option value="news">news</option>
					<option value="blog">blog</option>
					<option value="review">review</option>
					<option value="todayinrock">todayinrock</option>
					<option value="system">system</option>
				</select>
				
				<button id="add_new">Add New Post</button>
		</div>
		<hr />
		<div id="editor-main" >
			<h1 id='editor-title'></h1>
			<div class="formholder">
				
				<?php
					$editor->render_form($ptype,$e,$o,$id,$cmd);		
				?>
			</div>
		
		</div>
		<div id='editor-content'>
		<h3><?php echo $ptype ?></h3>
		<?php
			
			foreach($lit as $x)
			{
			 echo "<a href='editor?ptype=".$x['post_type']."&id=".$x['id']."&cmd=edit'>".$x['title']."</a><br />";			 
			}
		
		
		?>
		</div>
</div>
<div id="editor-controls">
	<div id="editor-head">
		<h3>Site Control</h3>
	</div>
	<div id="editor-h1-body">
	<h2>Pinoytuner Home</h2>
		<hr />		
		<?PHP
			$editor->generate_h1(1);		
		?>
		<h2>Dig Radio</h2>
		<hr />
		<?PHP
			$editor->generate_h1(2);		
		?>
		<?PHP
			$editor->generate_posts();		
		?>
	</div>
</div>	
